package chat.clientToServerMessage;

import chat.server.ClientThread;
import chat.server.Server;

/**
 * Login is sent by Client
 * @author Marius Eichenberg
 *
 */
public class Login implements ClientToServerMessage {
	
	private static final long serialVersionUID = 1L;
	private String name, password;
	
	
	public Login(String name, String password) {
		this.name = name;
		this.password = password;
	}

	
	public String getName() {
		return name;
	}
	
	
	public String getPassword() {
		return password;
	}
	
	
	@Override
	public void processOnServer(Server server, ClientThread ct) {
		server.loginPerson(this, ct);		
	}
}
